<template>
    <div>无权访问{{systemName}}</div>
</template>

<script>
    export default {
        name: "error",
        data() {
            return {
                systemName:''
            }
        },
        methods: {
            getQuerys() {
                //取得路由带过来的参数
                this.systemName = this.$route.query && this.$route.query.system
            },
        },
        created() {
            this.getQuerys()
        },
        watch: {
            //监测路由变化，只要变化了就调用路由参数方法将数据存储本组件即可
            '$route':
                'getQuerys',
        }
    }
</script>

<style scoped>

</style>
